import service from '../utils/request'
// 管理员登录
export const AdminLogin = (params) => {
  return service.post('/login', params )
}

//  content 搜索框搜索内容  pageNum pageSize
export const getAdmin = (params) => {
  return service.get('/findAllAdmin', params )
}

// 删除管理员信息
// query adminId
export const deleteAdmin = (params) => {
  return service.del(`/delAdmin?adminId=${params}`)
}

// 更新管理员信息
// body adminId 管理员Id
export const updateAdmin = (params) => {
  return service.put('/updateAdmin', params)
}

// 添加管理员信息
// body
export const addAdmin = (params) => {
  return service.post('/addAdmin', params)
}
